package java8_31;

/**
 * @author oldliu
 * @since 1.0
 */
//usb电风扇
public class USBFan implements USB{
    private String brand;

    public USBFan(String b){
        this.brand=b;
    }
    @Override
    public void plug() {
        System.out.println(brand+"电风扇接上了电脑，开始转动扇叶，送出了凉风");
    }

    @Override
    public void unplug() {
        System.out.println(brand+"从设备上移除，扇叶停止了转动！");
    }

    public static void main(String[] args) {
        USBFan f=new USBFan("杨子");
        f.work();
    }
}
